import Vue from 'vue'
import Router from 'vue-router'
import dlzc from '@/components/dlzc'
import clientpage from '@/components/clientpage'
import housepage from '@/components/housepage'
import glydl from '@/components/glydl'
import sjdlzc from '@/components/sjdlzc'
import Managementpage from '@/components/Managementpage'
import merchant from '@/components/merchant'
import sjhousepage from '@/components/sjhousepage'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'dlzc',
      component: dlzc
    },
    {
      path: '/clientpage/:userid/:username', // 定义了一个名为 userid 的动态参数
      name: 'clientpage',
      component: clientpage,
    },
    {
      path: '/housepage/:houseid/:userid',
      name: 'housepage',
      component: housepage,
    },
    {
      path: '/glydl',
      name: 'glydl',
      component: glydl,
    },
    {
      path: '/Managementpage',
      name: 'Managementpage',
      component: Managementpage,
    },
    {
      path: '/sjdlzc',
      name: 'sjdlzc',
      component: sjdlzc,
    },
    {
      path: '/merchant/:userid',
      name: 'merchant',
      component: merchant,
    },
    {
      path: '/sjhousepage/:userid',
      name: 'sjhousepage',
      component: sjhousepage,
    }
  ]
})
